<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>更新数据</title>
</head>
<body>
<form  action="{{url_for('user.update')}}" method="post">
    <p><input type="hidden"  value="{{user.id}}" name="id"/></p>
    <p><input type="text"  name="username" value="{{user.username}}"/></p>
    <p><input type="text" name="phone" value="{{user.phone}}"/></p>
    {% if not user.emial: %}
        <p><input type="text" name="email" value="{{''}}"/></p>
    {% else %}
        <p><input type="text" name="email" value="{{user.emial}}"/></p>
    {% endif %}
    <p><input type="submit" value="保存"/></p>

</form>
</body>
</html>